var lastsel2
jQuery("#rowed5").jqGrid({
	url:'JsonTestServlet',
	type:'post',
	datatype: "json",
	height: 250,
   	colNames:['ID','Stock', 'Ship via','Name', 'Notes'],
   	colModel:[
   		{name:'id',index:'id', width:90, sorttype:"int", editable: true},
   		{name:'stock',index:'stock', width:60, editable: true,edittype:"checkbox",editoptions: {value:"Yes:No"}},
   		{name:'ship',index:'ship', width:90, editable: true,edittype:"select",editoptions:{value:"FE:FedEx;IN:InTime;TN:TNT;AR:ARAMEX"}},		
   		{name:'name',index:'name', width:150,editable: true,editoptions:{size:"20",maxlength:"30"}},
   		{name:'note',index:'note', width:200, editable: true,edittype:"textarea", editoptions:{rows:"2",cols:"10"}}		
   	],
	onSelectRow: function(id){
		if(id && id!==lastsel2){
			jQuery('#rowed5').jqGrid('restoreRow',lastsel2);
			jQuery('#rowed5').jqGrid('editRow',id,true);
			lastsel2=id;
		}
	},
	editurl: "MyJsp.jsp",
	caption: "Input Types"
});
jQuery("#rowed5").jqGrid('navGrid','#pager2',{edit:true,add:true,del:false});



